<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>添加用户</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('add')}" method="post" class="form form-horizontal" id="form">
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>用户组：</label>
            <div class="formControls col-8">
                <span class="select-box">
                <select class="select Validform_error" size="1" name="user_group_id" datatype="*" nullmsg="请选择" onchange="selectUserGroup($(this))">
                    <option value="" selected="" disabled="disabled">请选择</option>
                    <volist name=":getLists('user_group')" id="v">
                        <option value="{$v.id}">{$v.title}</option>
                    </volist>
                </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>用户名：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入" name="name" datatype="*" nullmsg="不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>密码：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入6-18位字符" name="pwd" datatype="*6-18" nullmsg="不能为空" onfocus="this.type='password'">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>密码确认：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请与上次密码保持一致" name="pwd2" datatype="*6-18" nullmsg="不能为空" onfocus="this.type='password'" errormsg="您两次输入的密码不一致！" recheck="pwd">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>手机号：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入11位手机号" name="phone">
            </div>
        </div>
        <div class="row cl">
            <div class="col-9 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
<include file="Common:footer_include"/>
</body>
</html>